package cn.tedu._03weibo_test.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    //所有的实例定义在最上面

    OPERATION_SUCCESS(2001, "操作成功"),
    OPERATION_FAILED(3001, "操作失败"),
    USERNAME_EXISTS(1002,"用户名被占用"),
    USERNAME_PASSWORD_ERROR(1001,"用户名或密码错误"),
    NOT_LOGIN(1000,"未登录"),
    NOT_IllEGAL_USER(110, "非法操作"),
    VALIDATED_ERROR(6000,"参数校验失败"),
    VALIDATION_ERROR(6001,"参数校验失败");

    private Integer state;
    private String message;
}
